﻿<tk:ChildWindow x:Class="ControlTestApplications.WindowsPhoneApp.AuthPrompt"
                xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
                xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
                xmlns:tk="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
                mc:Ignorable="d"
                Title="Authentication Required"
                FontFamily="{StaticResource PhoneFontFamilyNormal}"
                FontSize="{StaticResource PhoneFontSizeNormal}"
                Foreground="{StaticResource PhoneForegroundBrush}"
                OverlayBrush="#7F000000"
                BorderBrush="Black"
                BorderThickness="2"
                Template="{StaticResource ChildWindow}">

    <Grid x:Name="LayoutRoot">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        <StackPanel Orientation="Horizontal"
                    Margin="5"
                    Grid.Row="0">
            <TextBlock Text="Please authenticate by following "></TextBlock>
            <HyperlinkButton x:Name="lnkAuthorise"
                             Click="lnkAuthorise_Click"
                             Content="this link."></HyperlinkButton>
        </StackPanel>
        <TextBlock x:Name="tbInfo"
                   Text="You may retry the operation once authentication is complete. However, it may take sometime for the system to complete the process."
                   TextWrapping="Wrap"
                   Margin="5"
                   Grid.Row="1"></TextBlock>
        <StackPanel Orientation="Horizontal"
                    Grid.Row="2"
                    HorizontalAlignment="Right">
            <Button x:Name="DoneButton"
                    Content="Done"
                    Click="DoneButton_Click"
                    Margin="0,10,10,5"
                    Padding="10,5"></Button>
            <Button x:Name="CancelButton"
                    Content="Cancel"
                    Click="CancelButton_Click"
                    Margin="0,10,10,5"
                    Padding="10,5"></Button>
        </StackPanel>
    </Grid>



</tk:ChildWindow>
